import request from '@/utils/request'

// 查询值班列表
export function listGuard(data) {
  return request({
    url: '/coordination/guard/list',
    method: 'post',
    data: data
  })
}

// 查询值班详细
export function getGuard(id) {
  return request({
    url: '/coordination/guard/' + id,
    method: 'get'
  })
}

// 新增值班
export function addGuard(data) {
  return request({
    url: '/coordination/guard',
    method: 'post',
    data: data
  })
}

// 修改值班
export function updateGuard(data) {
  return request({
    url: '/coordination/guard',
    method: 'put',
    data: data
  })
}

// 删除值班
export function delGuard(id) {
  return request({
    url: '/coordination/guard/' + id,
    method: 'delete'
  })
}

// 调用值班
export function editUser(data) {
  return request({
    url: '/coordination/guard/editUser',
    method: 'post',
    data
  })
}
